Page({
    data: {},
    onLoad: function(e) {
        switch (wx.getStorageSync("position")) {
          case "安徽":
            wx.setStorageSync("service_id", "658f212ceb3e4e9ea0a70c468ad9eb8e");
            break;

          case "新疆":
            wx.setStorageSync("service_id", "26ba54408f00451b8bd28224d4f501e8");
            break;

          case "北京":
            wx.setStorageSync("service_id", "9e8ba7d20262439fa1de3f85d06a34ac");
            break;

          case "内蒙古":
            wx.setStorageSync("service_id", "da42b4b8e7944035bce2fb2fb78ac7ef");
            break;

          case "福建":
            wx.setStorageSync("service_id", "1b048bcf00344f0e8f7817fab0e662bf");
            break;

          case "甘肃":
            wx.setStorageSync("service_id", "72964f83beb74b4b9ca3ac6314f00dd3");
            break;

          case "广东":
            wx.setStorageSync("service_id", "e72383eb6e9e4d28b453b5357ca16b28");
            break;

          case "贵州":
            wx.setStorageSync("service_id", "eef7c16c21d34c599dc4e26842b62e29");
            break;

          case "广西":
            wx.setStorageSync("service_id", "af02e5efc4724717bf43662684638107");
            break;

          case "黑龙江":
            wx.setStorageSync("service_id", "646ad40afb6d4d00bff0a78c718b0253");
            break;

          case "海南":
            wx.setStorageSync("service_id", "d97be45eb6bb4b4aac79e43f051dbe95");
            break;

          case "河北":
            wx.setStorageSync("service_id", "9dd9fde4936b4b728249874d40d81d80");
            break;

          case "河南":
            wx.setStorageSync("service_id", "d18ae6567f1f4b6c805dfe98c394dc6b");
            break;

          case "湖北":
            wx.setStorageSync("service_id", "56d455502d9f4f9dbd4b3e9e0d757ed6");
            break;

          case "吉林":
            wx.setStorageSync("service_id", "22374be193df463bae32d31cecc0c75e");
            break;

          case "山东":
            wx.setStorageSync("service_id", "afc5a9de81f54dfc8e1fefc8384e851c");
            break;

          case "江苏":
            wx.setStorageSync("service_id", "cb737880a7e94200bae4f14cda67fa9a");
            break;

          case "江西":
            wx.setStorageSync("service_id", "e7466fa3e9fc478bad63ac2cced926c5");
            break;

          case "辽宁":
            wx.setStorageSync("service_id", "bfb6105f66844877b72424fae7d0a32b");
            break;

          case "宁夏":
            wx.setStorageSync("service_id", "7514de521b8b4f11a9a91f17e81bfc78");
            break;

          case "青海":
            wx.setStorageSync("service_id", "3ff0ca46dd8a4f9f96eedc6e12c34dc5");
            break;

          case "山西":
            wx.setStorageSync("service_id", "77e6c7d5c54f40dca655da39b486d52b");
            break;

          case "陕西":
            wx.setStorageSync("service_id", "02f92598cff14f32baedbbc0b2c2eee6");
            break;

          case "上海":
            wx.setStorageSync("service_id", "20cf583c25464288ba8cb1664a0029bd");
            break;

          case "四川":
            wx.setStorageSync("service_id", "024a187a53e1411da5202562d435cf0f");
            break;

          case "天津":
            wx.setStorageSync("service_id", "eee142de239842deb3ecec94d540267e");
            break;

          case "西藏":
            wx.setStorageSync("service_id", "63e9054508f1472cb6cbe45588adeaf7");
            break;

          case "湖南":
            wx.setStorageSync("service_id", "711184d5901c4e31814ca98d817e1b85");
            break;

          case "云南":
            wx.setStorageSync("service_id", "891bc617591b44b9915723ce24209654");
            break;

          case "浙江":
            wx.setStorageSync("service_id", "fbff2b9601e941ada1f3f2532f1ebd72");
            break;

          case "重庆":
            wx.setStorageSync("service_id", "69982bf461e4411ab4221378ca2b226b");
        }
        switch (wx.getStorageSync("city")) {
          case "赤峰":
            wx.setStorageSync("service_id", "00ebc34a4b5744839bffa121e1bbb31c");
            break;

          case "桂林":
          case "济南":
            wx.setStorageSync("service_id", "2265fb95a5f5491faa96c73e6e71d3da");
            break;

          case "佳木斯":
            wx.setStorageSync("service_id", "e0fd317c382c48aa871eb3323631c652");
            break;

          case "柳州":
            wx.setStorageSync("service_id", "584d9607d5924020818620722540923c");
            break;

          case "齐齐哈尔":
            wx.setStorageSync("service_id", "1f96f09de6144f55bbe27f2770e63387");
            break;

          case "青岛":
            wx.setStorageSync("service_id", "74f356a9c9394aa0a129a7a32d81530d");
            break;

          case "汉中":
            wx.setStorageSync("service_id", "c9a9bd8f122446baba0ef8f102f23f0d");
            break;

          case "永州":
            wx.setStorageSync("service_id", "acc4436d2502443f971238b673942326");
            break;

          case "常德":
            wx.setStorageSync("service_id", "c401e33c1bc244c386f3af25100a24ca");
            break;

          case "长沙":
            wx.setStorageSync("service_id", "e75c9d12f7b2462c890d9ad6aa0389d5");
            break;

          case "喀什":
            wx.setStorageSync("service_id", "50bc53303ae9419b931f92b628b8b89c");
            break;

          case "伊犁":
            wx.setStorageSync("service_id", "2265fb95a5f5491faa96c73e6e71d3da");
            break;

          case "西安":
            wx.setStorageSync("service_id", "52026e1ac3d24583a22475602cd1471e");
        }
        wx.getStorageSync("position") ? this.setData({
            url: "https://huatu.sobot.com/chat/h5/v2/index.html?sysnum=c1a2757af422403fbce73e24dccc5160&channelid=4&groupid=" + wx.getStorageSync("service_id")
        }) : this.setData({
            url: "https://huatu.sobot.com/chat/h5/v2/index.html?sysnum=c1a2757af422403fbce73e24dccc5160&channelid=4"
        });
    }
});